<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>css语法结构及引入方式 | 个人笔记</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../md/css/css选择符及用法.html" />
    
    
    <link rel="prev" href="../../md/css/CSS的认识.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.1"
        data-chapter-title="css语法结构及引入方式"
        data-filepath="md/css/css语法结构及引入方式.md"
        data-basepath="../.."
        data-revision="Thu Jun 07 2018 19:36:00 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/gitbook的安装.html">
            
                
                    <a href="../../md/gitbook的安装.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        gitbook的安装
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2" data-path="md/css/CSS的认识.html">
            
                
                    <a href="../../md/css/CSS的认识.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="2.1" data-path="md/css/css语法结构及引入方式.html">
            
                
                    <a href="../../md/css/css语法结构及引入方式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        css语法结构及引入方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="md/css/css选择符及用法.html">
            
                
                    <a href="../../md/css/css选择符及用法.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        css选择符及用法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="md/css/CSS属性.html">
            
                
                    <a href="../../md/css/CSS属性.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        CSS属性
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="md/css/背景属性.html">
            
                
                    <a href="../../md/css/背景属性.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.1.</b>
                        
                        背景属性
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="md/css/字体属性.html">
            
                
                    <a href="../../md/css/字体属性.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.2.</b>
                        
                        字体属性
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >个人笔记</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="css&#x8BED;&#x6CD5;&#x7ED3;&#x6784;">CSS&#x8BED;&#x6CD5;&#x7ED3;&#x6784;</h1>
<p>CSS &#x8BED;&#x6CD5;&#x7531;&#x4E09;&#x90E8;&#x5206;&#x6784;&#x6210;&#xFF1A;&#x9009;&#x62E9;&#x7B26;&#x3001;&#x5C5E;&#x6027;&#x548C;&#x503C;
       &#x5C5E;&#x6027;&#xFF08;property&#xFF09;&#x662F;&#x60A8;&#x5E0C;&#x671B;&#x8BBE;&#x7F6E;&#x7684;&#x6837;&#x5F0F;&#x5C5E;&#x6027;&#xFF08;style attribute&#xFF09;&#x3002;&#x6BCF;&#x4E2A;&#x5C5E;&#x6027;&#x6709;&#x4E00;&#x4E2A;&#x503C;&#x3002;&#x5C5E;&#x6027;&#x548C;&#x503C;&#x88AB;&#x5192;&#x53F7;&#x5206;&#x5F00;&#x3002;</p>
<p><img src="../../img/1.jpg" alt="&#x8BED;&#x6CD5;"></p>
<h1 id="css&#x7684;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#xFF1A;">CSS&#x7684;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#xFF1A;</h1>
<h2 id="1&#x3001;&#x884C;&#x5185;&#x6837;&#x5F0F;">1&#x3001;&#x884C;&#x5185;&#x6837;&#x5F0F;</h2>
<p>&#x76F4;&#x63A5;&#x5728;&#x5143;&#x7D20;&#x7684;&#x5F00;&#x5934;&#x6807;&#x7B7E;&#x91CC;&#x9762;&#x5199;&#x76F8;&#x5E94;&#x7684;&#x6837;&#x5F0F;</p>
<p>&#x4F8B;&#x5982;&#xFF1A;</p>
<pre><code>   &lt;body style=&quot;background-color:#ccccc;&quot;&gt;

    &lt;h1 style=&quot;font-size:12px; color:#ff0000;&quot;&gt;&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6807;&#x9898;&lt;/h1&gt;
</code></pre><h2 id="2&#x3001;&#x9875;&#x5185;&#x6837;&#x5F0F;">2&#x3001;&#x9875;&#x5185;&#x6837;&#x5F0F;</h2>
<p>&#x76F4;&#x63A5;&#x901A;&#x8FC7;style&#x6807;&#x7B7E;&#x5199;&#x5728;head&#x91CC;&#x9762;</p>
<p>&#x4F8B;&#x5982;&#xFF1A;</p>
<pre><code>    &lt;head&gt;
           &lt;style type=&quot;text/css&quot;&gt;
              body {
                   background-color:#cccccc;
              }
           &lt;/style&gt;
        &lt;/head&gt;
</code></pre><h2 id="3&#x3001;&#x5916;&#x90E8;&#x5F15;&#x5165;">3&#x3001;&#x5916;&#x90E8;&#x5F15;&#x5165;</h2>
<p>&#x901A;&#x8FC7;link&#x6807;&#x7B7E;&#x5F15;&#x5165;&#x5916;&#x90E8;&#x7684;css&#x6837;&#x5F0F;&#x8868;</p>
<p>&#x4F8B;&#x5982;:</p>
<pre><code>   &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css/index.css&quot;/&gt;
</code></pre><p><em>&#x6CE8;&#x610F;&#xFF1A;link&#x9700;&#x8981;&#x5199;&#x5728;head&#x91CC;&#x9762;</em></p>
<h2 id="&#x4E09;&#x79CD;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#x7684;&#x4F18;&#x5148;&#x7EA7;&#xFF1A;">&#x4E09;&#x79CD;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#x7684;&#x4F18;&#x5148;&#x7EA7;&#xFF1A;</h2>
<p>&#x884C;&#x5185;&#x6837;&#x5F0F;&gt;&#x9875;&#x5185;&#x6837;&#x5F0F;&gt;&#x5916;&#x90E8;&#x5F15;&#x5165;&#xFF08;&#x5C31;&#x8FD1;&#x539F;&#x5219;&#xFF09;</p>
<h2 id="&#x9875;&#x9762;&#x6E32;&#x67D3;&#xFF1A;">&#x9875;&#x9762;&#x6E32;&#x67D3;&#xFF1A;</h2>
<p>&#x4ECE;&#x4E0A;&#x5230;&#x4E0B;&#x7684;&#x8FC7;&#x7A0B;</p>
<h2 id="&#x4EE3;&#x7801;&#x6CE8;&#x91CA;">&#x4EE3;&#x7801;&#x6CE8;&#x91CA;</h2>
<p>&#x5728;css&#x4E2D;&#x53EA;&#x6709;&#x4E00;&#x79CD;&#x4EE3;&#x7801;&#x6CE8;&#x91CA;&#x65B9;&#x5F0F;&#xFF0C;&#x5B83;&#x4EE5; <code>/*</code> &#x5F00;&#x59CB; <code>*/</code> &#x7ED3;&#x675F;</p>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../md/css/CSS的认识.html" class="navigation navigation-prev " aria-label="Previous page: CSS"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../md/css/css选择符及用法.html" class="navigation navigation-next " aria-label="Next page: css选择符及用法"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
